package com.example.administrator.myapplication;

import android.content.Context;

import java.io.FileOutputStream;

/**
 * Created by Administrator on 2021/1/2.
 */

public class mm {
    public static  boolean saveUserInfo(Context context,String account,String password){
        FileOutputStream fos = null;
        try {
            fos = context.openFileOutput("data.txt", Context.MODE_PRIVATE);
            fos.write((account + ":" + password).getBytes());
            return false;
        }catch(Exception e) {
            e.printStackTrace();
            return false;
        }finallt{
            try {

            }
        }
    }
}
